function vote(oid) {
	var oid = oid;
	$.ajax({
		type: "POST",
		url: CONTROL + "&m=add_vote",
		dataType: "JSON",
		cache: false,
		data: "oid="+oid,
        success: function (data) {
            if (data.state == 1) {
				alert(data.message);
				$("#count"+oid).text(data.count);
			} else {
				alert(data.message);
			}
        }
    })
}